<!--
 * @Author       : wfl
 * @LastEditors  : wfl
 * @description  :
 * @updateInfo   :
 * @Date         : 2023-03-29 15:53:18
 * @LastEditTime : 2023-09-19 17:58:44
-->
<script lang="ts" setup name="IkFooter">
import type { PropType } from 'vue'
defineProps({
  align: {
    type: String as PropType<'left' | 'center' | 'right'>,
    default: 'right'
  }
})
</script>

<template>
  <el-affix position="bottom" :class="`${align} ik-footer-component`">
    <slot></slot>
  </el-affix>
</template>

<style lang="scss">
.el-affix.ik-footer-component {
  margin: 8px 20px;

  &.right > div {
    text-align: right;
  }

  &.left > div {
    text-align: left;
  }

  &.center > div {
    text-align: center;
  }
}
</style>
